3.29 \(\int \frac{1}{(b \tan ^2(c+d x))^{5/2}} \, dx\)

Optimal. Leaf size=97 \[ -\frac{\cot ^3(c+d x)}{4 b^2 d \sqrt{b \tan ^2(c+d x)}}+\frac{\cot (c+d x)}{2 b^2 d \sqrt{b \tan ^2(c+d x)}}+\frac{\tan (c+d x) \log (\sin (c+d x))}{b^2 d \sqrt{b \tan ^2(c+d x)}} \]

[Out]

Cot[c + d*x]/(2*b^2*d*Sqrt[b*Tan[c + d*x]^2]) - Cot[c + d*x]^3/(4*b^2*d*Sqrt[b*Tan[c + d*x]^2]) + (Log[Sin[c +
 d*x]]*Tan[c + d*x])/(b^2*d*Sqrt[b*Tan[c + d*x]^2])

________________________________________________________________________________________

Rubi [A]  time = 0.0398231, antiderivative size = 97, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {3658, 3473, 3475} \[ -\frac{\cot ^3(c+d x)}{4 b^2 d \sqrt{b \tan ^2(c+d x)}}+\frac{\cot (c+d x)}{2 b^2 d \sqrt{b \tan ^2(c+d x)}}+\frac{\tan (c+d x) \log (\sin (c+d x))}{b^2 d \sqrt{b \tan ^2(c+d x)}} \]

Antiderivative was successfully verified.

[In]

Int[(b*Tan[c + d*x]^2)^(-5/2),x]

[Out]

Cot[c + d*x]/(2*b^2*d*Sqrt[b*Tan[c + d*x]^2]) - Cot[c + d*x]^3/(4*b^2*d*Sqrt[b*Tan[c + d*x]^2]) + (Log[Sin[c +
 d*x]]*Tan[c + d*x])/(b^2*d*Sqrt[b*Tan[c + d*x]^2])

Rule 3658

Int[(u_.)*((b_.)*tan[(e_.) + (f_.)*(x_)]^(n_))^(p_), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Di
st[((b*ff^n)^IntPart[p]*(b*Tan[e + f*x]^n)^FracPart[p])/(Tan[e + f*x]/ff)^(n*FracPart[p]), Int[ActivateTrig[u]
*(Tan[e + f*x]/ff)^(n*p), x], x]] /; FreeQ[{b, e, f, n, p}, x] &&  !IntegerQ[p] && IntegerQ[n] && (EqQ[u, 1] |
| MatchQ[u, ((d_.)*(trig_)[e + f*x])^(m_.) /; FreeQ[{d, m}, x] && MemberQ[{sin, cos, tan, cot, sec, csc}, trig
]])

Rule 3473

Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(b*(b*Tan[c + d*x])^(n - 1))/(d*(n - 1)), x] - Dis
t[b^2, Int[(b*Tan[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1]

Rule 3475

Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[Log[RemoveContent[Cos[c + d*x], x]]/d, x] /; FreeQ[{c, d}, x]

Rubi steps

\begin{align*} \int \frac{1}{\left (b \tan ^2(c+d x)\right )^{5/2}} \, dx &=\frac{\tan (c+d x) \int \cot ^5(c+d x) \, dx}{b^2 \sqrt{b \tan ^2(c+d x)}}\\ &=-\frac{\cot ^3(c+d x)}{4 b^2 d \sqrt{b \tan ^2(c+d x)}}-\frac{\tan (c+d x) \int \cot ^3(c+d x) \, dx}{b^2 \sqrt{b \tan ^2(c+d x)}}\\ &=\frac{\cot (c+d x)}{2 b^2 d \sqrt{b \tan ^2(c+d x)}}-\frac{\cot ^3(c+d x)}{4 b^2 d \sqrt{b \tan ^2(c+d x)}}+\frac{\tan (c+d x) \int \cot (c+d x) \, dx}{b^2 \sqrt{b \tan ^2(c+d x)}}\\ &=\frac{\cot (c+d x)}{2 b^2 d \sqrt{b \tan ^2(c+d x)}}-\frac{\cot ^3(c+d x)}{4 b^2 d \sqrt{b \tan ^2(c+d x)}}+\frac{\log (\sin (c+d x)) \tan (c+d x)}{b^2 d \sqrt{b \tan ^2(c+d x)}}\\ \end{align*}

Mathematica [A]  time = 0.251275, size = 68, normalized size = 0.7 \[ \frac{\tan ^5(c+d x) \left (-\cot ^4(c+d x)+2 \cot ^2(c+d x)+4 \log (\tan (c+d x))+4 \log (\cos (c+d x))\right )}{4 d \left (b \tan ^2(c+d x)\right )^{5/2}} \]

Antiderivative was successfully verified.

[In]

Integrate[(b*Tan[c + d*x]^2)^(-5/2),x]

[Out]

((2*Cot[c + d*x]^2 - Cot[c + d*x]^4 + 4*Log[Cos[c + d*x]] + 4*Log[Tan[c + d*x]])*Tan[c + d*x]^5)/(4*d*(b*Tan[c
 + d*x]^2)^(5/2))

________________________________________________________________________________________

Maple [A]  time = 0.021, size = 74, normalized size = 0.8 \begin{align*} -{\frac{\tan \left ( dx+c \right ) \left ( 2\,\ln \left ( 1+ \left ( \tan \left ( dx+c \right ) \right ) ^{2} \right ) \left ( \tan \left ( dx+c \right ) \right ) ^{4}-4\,\ln \left ( \tan \left ( dx+c \right ) \right ) \left ( \tan \left ( dx+c \right ) \right ) ^{4}-2\, \left ( \tan \left ( dx+c \right ) \right ) ^{2}+1 \right ) }{4\,d} \left ( b \left ( \tan \left ( dx+c \right ) \right ) ^{2} \right ) ^{-{\frac{5}{2}}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*tan(d*x+c)^2)^(5/2),x)

[Out]

-1/4/d*tan(d*x+c)*(2*ln(1+tan(d*x+c)^2)*tan(d*x+c)^4-4*ln(tan(d*x+c))*tan(d*x+c)^4-2*tan(d*x+c)^2+1)/(b*tan(d*
x+c)^2)^(5/2)

________________________________________________________________________________________

Maxima [A]  time = 1.55698, size = 89, normalized size = 0.92 \begin{align*} -\frac{\frac{2 \, \log \left (\tan \left (d x + c\right )^{2} + 1\right )}{b^{\frac{5}{2}}} - \frac{4 \, \log \left (\tan \left (d x + c\right )\right )}{b^{\frac{5}{2}}} - \frac{2 \, \sqrt{b} \tan \left (d x + c\right )^{2} - \sqrt{b}}{b^{3} \tan \left (d x + c\right )^{4}}}{4 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*tan(d*x+c)^2)^(5/2),x, algorithm="maxima")

[Out]

-1/4*(2*log(tan(d*x + c)^2 + 1)/b^(5/2) - 4*log(tan(d*x + c))/b^(5/2) - (2*sqrt(b)*tan(d*x + c)^2 - sqrt(b))/(
b^3*tan(d*x + c)^4))/d

________________________________________________________________________________________

Fricas [A]  time = 1.40071, size = 207, normalized size = 2.13 \begin{align*} \frac{{\left (2 \, \log \left (\frac{\tan \left (d x + c\right )^{2}}{\tan \left (d x + c\right )^{2} + 1}\right ) \tan \left (d x + c\right )^{4} + 3 \, \tan \left (d x + c\right )^{4} + 2 \, \tan \left (d x + c\right )^{2} - 1\right )} \sqrt{b \tan \left (d x + c\right )^{2}}}{4 \, b^{3} d \tan \left (d x + c\right )^{5}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*tan(d*x+c)^2)^(5/2),x, algorithm="fricas")

[Out]

1/4*(2*log(tan(d*x + c)^2/(tan(d*x + c)^2 + 1))*tan(d*x + c)^4 + 3*tan(d*x + c)^4 + 2*tan(d*x + c)^2 - 1)*sqrt
(b*tan(d*x + c)^2)/(b^3*d*tan(d*x + c)^5)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{1}{\left (b \tan ^{2}{\left (c + d x \right )}\right )^{\frac{5}{2}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*tan(d*x+c)**2)**(5/2),x)

[Out]

Integral((b*tan(c + d*x)**2)**(-5/2), x)

________________________________________________________________________________________

Giac [B]  time = 3.49898, size = 366, normalized size = 3.77 \begin{align*} -\frac{\mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right ) \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right ) \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} - 12 \, \mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right ) \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right ) \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + \frac{64 \, \log \left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right ) \mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right )}{\mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )} - \frac{32 \, \log \left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2}\right ) \mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right )}{\mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right )} + \frac{48 \, \mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right ) \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} - 12 \, \mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right ) \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + \mathrm{sgn}\left (-\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 1\right )}{\mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )\right ) \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4}}}{64 \, b^{\frac{5}{2}} d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*tan(d*x+c)^2)^(5/2),x, algorithm="giac")

[Out]

-1/64*(sgn(-tan(1/2*d*x + 1/2*c)^2 + 1)*sgn(tan(1/2*d*x + 1/2*c))*tan(1/2*d*x + 1/2*c)^4 - 12*sgn(-tan(1/2*d*x
 + 1/2*c)^2 + 1)*sgn(tan(1/2*d*x + 1/2*c))*tan(1/2*d*x + 1/2*c)^2 + 64*log(tan(1/2*d*x + 1/2*c)^2 + 1)*sgn(-ta
n(1/2*d*x + 1/2*c)^2 + 1)/sgn(tan(1/2*d*x + 1/2*c)) - 32*log(tan(1/2*d*x + 1/2*c)^2)*sgn(-tan(1/2*d*x + 1/2*c)
^2 + 1)/sgn(tan(1/2*d*x + 1/2*c)) + (48*sgn(-tan(1/2*d*x + 1/2*c)^2 + 1)*tan(1/2*d*x + 1/2*c)^4 - 12*sgn(-tan(
1/2*d*x + 1/2*c)^2 + 1)*tan(1/2*d*x + 1/2*c)^2 + sgn(-tan(1/2*d*x + 1/2*c)^2 + 1))/(sgn(tan(1/2*d*x + 1/2*c))*
tan(1/2*d*x + 1/2*c)^4))/(b^(5/2)*d)